package com.yz.test;

import com.google.gson.JsonObject;

/**
 * @author yuanzheng
 * @date 2020/7/24-18:02
 */
public class gsonDemo {
    public static void main(String[] args) {
        JsonObject json = new JsonObject();
        json.addProperty("circuitNumber", "123-456");
        json.addProperty("dealUser", "张三");
        json.addProperty("dealTime", "2020-07-10");
        json.addProperty("resourceResult", "竣工");
        String jsonStr = "{\"body\":"+json.toString()+"}";
        System.out.println(jsonStr);
    }
}
